using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlTypes;

public class BANG_UserProfiles : XL_BANG
{
    public BANG_UserProfiles()
        : base("UserProfiles")
    {
    }
    public BANG_UserProfiles(int pMa)
        : base("UserProfiles", "Select * From UserProfiles Where IdUserProfiles = " + pMa)
    {
    }
    public BANG_UserProfiles(string pChuoi_SQL)
        : base("UserProfiles", pChuoi_SQL)
    {
    }
    public XL_UserProfiles this[int i]
    {
        get
        {
            if (Kiem_tra_vi_tri(i))
                return new XL_UserProfiles(this.Rows[i]);
            else
                return null;
        }
        set
        {
            if (Kiem_tra_vi_tri(i))
            {
                this.Rows[i]["IdUserProfiles"] = value.IdUserProfiles;
                this.Rows[i]["Username"] = value.Username;
                this.Rows[i]["Names"] = value.Names;
                this.Rows[i]["Gender"] = value.Gender;
                this.Rows[i]["DateBirth"] = value.DateBirth;
                this.Rows[i]["City"] = value.City;
                this.Rows[i]["People"] = value.People;
                this.Rows[i]["Avatar"] = value.Avatar;
                this.Rows[i]["Interests"] = value.Interests;
                this.Rows[i]["Jobs"] = value.Jobs;
                this.Rows[i]["CreateTime"] = value.CreateTime;

            }
        }
    }
    public static BANG_UserProfiles Doc_cac_userprofiles()
    {
        return new BANG_UserProfiles();
    }
    public static BANG_UserProfiles Doc_cac_userprofiles_theo_Ma(int pMa)
    {
        return new BANG_UserProfiles(pMa);
    }
    
}

